﻿
#region USING

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

#endregion

namespace Learning.ConwaysGameOfLife.Tests
{
    public class CommonTestFunctions
    {
        #region Constructors (1) 

        public CommonTestFunctions()
        {
        }

        #endregion Constructors 

        #region Methods (2) 

        // Protected Methods (2) 

        protected List<Cell> GetAliveCellList()
        {
            List<Cell> liveCells = new List<Cell>();

            liveCells.Add(new Cell(new Cordinate(2, 4), CellState.Alive));
            liveCells.Add(new Cell(new Cordinate(3, 7), CellState.Alive));
            liveCells.Add(new Cell(new Cordinate(1, 4), CellState.Alive));
            liveCells.Add(new Cell(new Cordinate(5, 8), CellState.Alive));
            liveCells.Add(new Cell(new Cordinate(8, 6), CellState.Alive));

            return liveCells;
        }

        protected List<Cordinate> GetIntialAliveCellList()
        {
            List<Cordinate> intialAliveCells = new List<Cordinate>();

            intialAliveCells.Add(new Cordinate(2, 4));
            intialAliveCells.Add(new Cordinate(3, 7));
            intialAliveCells.Add(new Cordinate(1, 4));
            intialAliveCells.Add(new Cordinate(5, 8));
            intialAliveCells.Add(new Cordinate(8, 6));

            return intialAliveCells;
        }

        #endregion Methods 
    }
}